<template>
  <div class="version">
    <p style="height: 20rem; line-height: 20rem; font-size: 20px; font-weight: bold;">当前版本为: v1.1.271</p>
    <button @click="setCloneWalletBind(1)">打开调试器</button><button @click="setCloneWalletBind(0)">关闭调试器</button>
  </div>
</template>

<script>
import VConsole from "vconsole";
export default {
  data() {
    return {};
  },
  mounted() {
    let _openVS = localStorage.getItem("isVConsole")||0;
    if(Number(_openVS) ){
      new VConsole();
    }
  },
  methods: {
    setCloneWalletBind(tag){
      localStorage.setItem("isVConsole",tag);
      location.reload();
    }
  }
};
</script>

<style lang="scss" rel="stylesheet/scss" scoped></style>
